import VKrasMarkDown from "./v-kras-markdown/index.vue";
import { createApp } from "vue";
import App from "../App.vue";
import "../assets/icons/system/iconfont.css";
import Antd from "ant-design-vue";
import "ant-design-vue/dist/reset.css";
import { setupHighlightDirective } from "../utils/highlight";

// 按需引入
export { VKrasMarkDown };

// const app = createApp(App);

const component = [VKrasMarkDown];

const install = function (App) {
  component.forEach((item) => {
    console.log("come in item", item);
    App.component(item.name, item);
  });
  setupHighlightDirective(App);
};

export default { install };
